import request from '@/request';
// type Params = {
//   pagesize: number;
// };

export async function getReadingData(anid: number, chaps: number) {
    return request.get<API.BookReading>(`busiapi/anime/read/${anid}`, { chaps });
}

export async function getBookAddMe(anid: number) {
    return request.post<API.BookReading>(`busiapi/bookrack/addMe`, { anid });
}

export async function getBookDelMe(anid: number) {
    return request.post<API.BookReading>(`busiapi/bookrack/batchDelMe`, { anids: [anid] });
}
